﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

public partial class AddUserInput : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public string? Id { get; set; }

    /// <summary>
    /// 账号
    /// </summary>
    [DisplayName("账号")]
    [JsonPropertyName("account")]
    [Required(ErrorMessage = "账号不能为空")]
    public string? Account { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [DisplayName("密码")]
    [JsonPropertyName("password")]
    [Required(ErrorMessage = "密码不能为空")]
    public string? Password { get; set; }

    /// <summary>
    /// 确认密码
    /// </summary>
    [DisplayName("确认密码")]
    [JsonPropertyName("confirm")]
    [Required(ErrorMessage = "确认密码不能为空")]
    public string? Confirm { get; set; }

    /// <summary>
    /// 昵称
    /// </summary>
    [DisplayName("昵称")]
    [JsonPropertyName("nickName")]
    public string? NickName { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    [DisplayName("姓名")]
    [JsonPropertyName("name")]
    public string? Name { get; set; }

    /// <summary>
    /// 头像
    /// </summary>
    [DisplayName("头像")]
    [JsonPropertyName("avatar")]
    public string? Avatar { get; set; }

    /// <summary>
    /// 生日
    /// </summary>
    [DisplayName("生日")]
    [JsonPropertyName("birthday")]
    public System.DateTimeOffset? Birthday { get; set; }

    /// <summary>
    /// 性别-男_1、女_2
    /// </summary>
    [DisplayName("性别-男_1、女_2")]
    [JsonPropertyName("sex")]
    public int Sex { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    [DisplayName("邮箱")]
    [JsonPropertyName("email")]
    public string? Email { get; set; }

    /// <summary>
    /// 手机
    /// </summary>
    [DisplayName("手机")]
    [JsonPropertyName("phone")]
    public string? Phone { get; set; }

    /// <summary>
    /// 电话
    /// </summary>
    [DisplayName("电话")]
    [JsonPropertyName("tel")]
    public string? Tel { get; set; }

    [JsonPropertyName("status")]
    public CommonStatus Status { get; set; }

    [JsonPropertyName("sysEmpParam")]
    public EmpOutput2 SysEmpParam { get; set; } = new();

}
